let vm = new Vue({
    el: '#app',  //选中整个main
    data() {
        return {
            page: {},
            title: '',
            status:''
        }
    },
    methods: {
        selectPage: function (start = 1, pageSize = 5) {
            axios({
                url: `meeting/selectPage/${start}/${pageSize}`,
                params: {
                    title: this.title,
                    status:this.status
                }
            }).then(response => {
                //不成功提示
                if (response.data.success) {
                    this.page = response.data.obj;
                } else {
                    layer.msg(response.data.msg);
                }
            }).catch(error => {
                layer.msg(error.message);
            })
        },
        todetil: function (meeting) {
            layer.obj = meeting;
            layer.open({
                type: 2,
                title: '更新',
                maxmin: true,
                shadeClose: true, //点击遮罩关闭层
                area: ['1000px', '80%'],
                content: 'html/meeting_detail.html',
            });
        },
    },
    created: function () {
        this.selectPage();
    }
});